#include <sys_head.h>



void File_cpoy(int fd_dest , int fd_src);



int main(int argc, char const *argv[])
{
    // 打开文件
    int fd = open( "HQYJ.txt" , O_RDWR  , 0667 );
    if (fd == EOF)
    {
        ERRLOG("open");
        return 0;
    }
    char buf[128] = "ssize_t read(int fd, void *buf, size_t count);";
    write( fd , buf , strlen(buf));
    

    memset(buf , 0 , sizeof(buf));

    lseek( fd , 0 , SEEK_SET );
//ssize_t
    char buf_2[128] = "ubuntu";
    write( fd , buf_2 , strlen(buf_2));

    // read( fd , buf , sizeof(buf) );
    // printf("%s\n" , buf );

    // 关闭文件
    close(fd);

    return 0;
}